package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDate;

/**
 * 占绿移植信息管理表
 *
 * @author code-generate
 * @date 2023-03-03
 */
@Data
@DbTable(tableName = "t_gre_transplant")
public class GreTransplant extends BaseEntity {
    /**
     * 编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code;

    /**
     * 占绿事由
     */
    @DbTableField(columnName = "c_reason", dbType = DbTypeEnum.VARCHAR)
    public String reason;

    /**
     * 占绿方
     */
    @DbTableField(columnName = "c_occupant", dbType = DbTypeEnum.VARCHAR)
    public String occupant;

    /**
     * 占绿地点
     */
    @DbTableField(columnName = "c_occupy_address", dbType = DbTypeEnum.VARCHAR)
    public String occupyAddress;

    /**
     * 占绿类型 1行道树、2道路附属绿地、3公园绿地
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.TINYINT)
    public Byte type;

    /**
     * 占绿内容
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc;

    /**
     * 占绿性质 1临时 2永久
     */
    @DbTableField(columnName = "c_attribute", dbType = DbTypeEnum.TINYINT)
    public Byte attribute;

    /**
     * 占绿开始时间
     */
    @DbTableField(columnName = "c_start_date", dbType = DbTypeEnum.DATE)
    public LocalDate startDate;

    /**
     * 建设结束时间 如果是永久，时间为“（xx年xx月xx日起至长期）
     */
    @DbTableField(columnName = "c_end_date", dbType = DbTypeEnum.DATE)
    public LocalDate endDate;

    /**
     * 实际移植时间
     */
    @DbTableField(columnName = "c_transplant_date", dbType = DbTypeEnum.DATE)
    public LocalDate transplantDate;

    /**
     * 缴款金额/元
     */
    @DbTableField(columnName = "c_price", dbType = DbTypeEnum.DOUBLE)
    public Double price;

    /**
     * 移植施工方
     */
    @DbTableField(columnName = "c_construction", dbType = DbTypeEnum.VARCHAR)
    public String construction;

    /**
     * 移植地点
     */
    @DbTableField(columnName = "c_transplant_address", dbType = DbTypeEnum.VARCHAR)
    public String transplantAddress;

    /**
     * 项目经办人姓名
     */
    @DbTableField(columnName = "c_signature", dbType = DbTypeEnum.VARCHAR)
    public String signature;

    /**
     * 项目经办人电话
     */
    @DbTableField(columnName = "c_phone", dbType = DbTypeEnum.VARCHAR)
    public String phone;


}
